package _15线程睡眠sleep;

public class Demo2 {
    public static void main(String[] args) throws InterruptedException {
        new Thread(new Runnable() {
            @Override
            public void run() {
                String name = Thread.currentThread().getName();
                for (int i = 0; i < 10; i++) {

                    System.out.println(name+"="+i);
                }
            }
        }).start();

        Thread.sleep(200);

        for (int i = 0; i < 10; i++) {

            System.out.println("main"+"="+i);
        }
    }
}
